/**
 * Copyright (c) 2016-2019 人人开源 All rights reserved.
 *
 * https://www.renren.io
 *
 * 版权所有，侵权必究！
 */

package io.renren;

import io.renren.common.utils.FastDFSClientUtils;
import lombok.extern.log4j.Log4j2;
import org.springframework.amqp.rabbit.annotation.EnableRabbit;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;


@SpringBootApplication
@Log4j2
@EnableRabbit
public class XiaoXiLiveApplication {
	public static void main(String[] args) {

			try {
				String filePath = "fastdfs_client.conf";
				if (args.length > 0) {
					filePath = args[0];
				}
				FastDFSClientUtils.setFile(filePath);
				SpringApplication.run(XiaoXiLiveApplication.class, args);
			} catch (Exception e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
		}

}






